#include "browsesingleview.h"
#include "browsesinglescene.h"

BrowsesingleView::BrowsesingleView(QWidget *parent,bool bPre) :
    QGraphicsView(parent)
{
    setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
    setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);

    m_effectscene = new BrowseSingleScene(this,bPre);
    setScene(m_effectscene);
    connect(m_effectscene,SIGNAL(back()),this,SLOT(backtowindow()));
    connect(m_effectscene,SIGNAL(perback()),this,SLOT(PreBack()));
}

BrowsesingleView::~BrowsesingleView()
{
    delete m_effectscene;
}

void BrowsesingleView::backtowindow()
{
    emit back();
}

void BrowsesingleView::PreBack()
{
    emit preback();
}
